<?php
/*
Plugin Name: Platforma Wordpress
Plugin URI: http://devrepo.local/platforma-wp
Description: Plugin is connecting your wordpress site with platforma-wp service
Author: Tomasz Galuszka
Version: 1.0
Author URI: http://devrepo.local
*/

/** REGISTER ACTION */
if (!class_exists('PWP_RegisterAction')) {
	require_once('platforma/PWP_Mdt.php');
	require_once('platforma/PWP_View.php');
	require_once('platforma/PWP_RegisterAction.php');
} 
if (class_exists('PWP_RegisterAction')) {
	register_activation_hook(__FILE__, array('PWP_RegisterAction', 'init'));
	register_deactivation_hook(__FILE__, array('PWP_RegisterAction', 'destroy'));
	
	$registerAction = new PWP_RegisterAction();
}

/** SERVICE ACTION */
if (!class_exists('PWP_ServiceAction')) {
	require_once('platforma/PWP_Mdt.php');
	require_once('platforma/PWP_View.php');
	require_once('platforma/PWP_ServiceAction.php');
} 
if (class_exists('PWP_ServiceAction')) {
	register_activation_hook(__FILE__, array('PWP_ServiceAction', 'init'));
	register_deactivation_hook(__FILE__, array('PWP_ServiceAction', 'destroy'));

	$serviceAction = new PWP_ServiceAction();
}
?>
